Object.defineProperty(exports, "__esModule", {
  value: true
});
var PlayerDataManager = require("AA_PlayerDataManager");
var _decorator = cc._decorator;
var _ccclass = _decorator.ccclass;
_decorator.property;
_decorator.inspector;
var _def_TTAPI = function () {
  function _creator() {}
  _creator.getImRankList = function () {
    window.tt && window.tt.getImRankList && window.tt.getImRankList({
      relationType: "default",
      dataType: 0,
      rankType: "all",
      suffix: "章",
      rankTitle: "章节通关排行榜",
      zoneId: "default",
      success: function (e) {
        console.log("getImRankData success res: " + e);
      },
      fail: function (e) {
        console.log("getImRankData fail res: " + e.errMsg);
      }
    });
  };
  _creator.setImRankData = function (e) {
    if (!PlayerDataManager.PlayerDataMgr.WHITE_NAME_NO_VIDEO) {
      var t = e + "";
      window.tt && window.tt.setImRankData && window.tt.setImRankData({
        dataType: 0,
        value: t,
        priority: 0,
        extra: "extra",
        zoneId: "default",
        success: function (e) {
          console.log("setImRankData success res: " + e);
        },
        fail: function (e) {
          console.log("setImRankData fail res: " + e.errMsg);
        }
      });
    }
  };
  return __decorate([_ccclass], _creator);
}();
exports.default = _def_TTAPI;